package CreationalPatterns.AbstractFactory;

public class Test {

  public static void main(String[] args) {
    ColorFactory colorFactory = new ColorFactory();

    Color red = colorFactory.getColor("red");

    red.paint();

    Color blue = colorFactory.getColor("blue");

    blue.paint();

    ShapeFactory shapeFactory = new ShapeFactory();

    Shape circle = shapeFactory.getShape("circle");

    circle.draw();

    Shape rectangle = shapeFactory.getShape("rectangle");

    rectangle.draw();
  }
}
